package com.ykt.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jfinal.aop.Enhancer;
import com.ykt.service.Ys7Service;

public class Ys7Job implements Runnable{
	private static final Logger LOGGER = LoggerFactory.getLogger(Ys7Job.class);
	
	private Ys7Service service = Enhancer.enhance(Ys7Service.class.getName(), Ys7Service.class);
	
	
	public void crawl(){
		LOGGER.info("开始抓取摄像头信息。。。");
		service.syncCamera();
		LOGGER.info("。。。抓取摄像头信息结束");
	}


    @Override
    public void run() {
        crawl();
    }
}
